package cn.trip.service.index;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.trip.pojo.Trip_address;
import cn.trip.pojo.Trip_bill;
import cn.trip.pojo.Trip_brands;
import cn.trip.pojo.Trip_place;
import cn.trip.pojo.Trip_product;
import cn.trip.pojo.Trip_room;
import cn.trip.pojo.Trip_theme;
import cn.trip.pojo.Trip_tourist;

public interface IndexService {

	public List<Trip_brands> getAllList(int currentPageNo,int pageSize);
	
	public int allCount();
	
	public int partCount(int p_type);
	
	public List<Trip_product> getAllListByPtype(int p_type,String area,String p_Name,Integer th_id,int currentPageNo,int pageSize);
	
	public List<Trip_brands> getBrandsDesc();
	
	public List<Trip_theme> getThemes(int theme_id);
	
	public List<Trip_brands> getBrands(String area,String desc,String title,int currentPageNo,int pageSize);
	
	public Trip_brands getBrandById(int id);
	
	public List<Trip_address> getAddress();
	
	public Trip_brands getBrandsByAreaOrUsingDate(Date usingDate,String title);
	
	public boolean add(String p_Name,Date usingDate,
			double price,int count,double totalPrice,
			Date createDate,int u_id,int status,
			int isPay,String phone,String contact,int proType,
			String userCode,String b_Code,String org_pic,String p_createBy);
	
	public boolean addTourist(Trip_tourist tourist);
	
	public Trip_bill getBill_Id(String b_Code);
	
	public List<Trip_place> getPlaces();
	
	public int getPlaceCount(int p_Type,String area,String p_Name,int th_id);
	
	public Trip_product geTrip_product(int id);
	
	public Trip_room getTrip_rooms(String hotelName,String roomName,Date usingDate);
	
	public boolean modifyRoomRest(int rest,int room_id);
	
	public boolean addHotelBill(String p_Name,Date usingDate,
			double price,int count,double totalPrice,
			Date createDate,int u_id,int status,int roomType,
			int isPay,String phone,String contact,int proType,
			String userCode,String b_Code,String org_pic,String p_createBy);
	
	public Trip_room getRoom_id(int room_id);
}
